package com.xiaoshuidi.cloud.module.system.controller.admin.auth.vo;

import com.xiaoshuidi.cloud.framework.common.validation.InEnum;
import com.xiaoshuidi.cloud.framework.common.validation.Mobile;
import com.xiaoshuidi.cloud.module.system.enums.sms.SmsSceneEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * 管理后台 - 发送手机验证码 Request VO
 */
@Schema(description = "管理后台 - 发送手机验证码 Request VO")
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@Accessors(chain = true)
public class AuthSmsSendReqVO {

    /**
     * 手机号
     */
    @Schema(description = "手机号", required = true, example = "leaseyuanma")
    @NotEmpty(message = "手机号不能为空")
    @Mobile
    private String mobile;

    /**
     * 短信场景
     */
    @Schema(description = "短信场景", required = true, example = "1")
    @NotNull(message = "发送场景不能为空")
    @InEnum(SmsSceneEnum.class)
    private Integer scene;

}